
#ifndef VECTOR_NAME_SERVER_H
#define VECTOR_NAME_SERVER_H

#include <string>
#include "nameserverinterface.h"
#include <vector>
#include <stdlib.h>
using namespace std;
namespace cpp_lab4 {
    class VectorNameServer : public NameServerInterface {
    public:
    	VectorNameServer(){}
        ~VectorNameServer(){}
        void insert(const HostName &,const IPAddress &);
        bool remove(const HostName&);
        IPAddress lookup(const HostName&) const;
    private:
        vector<pair<string,int> > database;
    };
}
#endif
